package com.file;

import java.io.BufferedReader;
import java.io.FileReader;

public class FileTest01 {
    public static void main(String[] args) {
        try {
            BufferedReader reader = new BufferedReader(new FileReader("E:\\\\0908.csv"));
            String line = null;
            String tableName = "";
            while((line=reader.readLine())!=null){
                String item[] = line.split("，");
                String last = item[item.length-1];
                if(last.endsWith("TABLE_NAME\tTABLE_ROWS")){
                    tableName = last.split(",")[0];
                }
                if(last.startsWith("report_")){
                    long value = Long.parseLong(last.split("\t")[1]);
                    if (value > 30000000) {
                        System.out.println(tableName);
                        System.out.println(last.split("\t")[0] +"  "+ value);
                    }
                }
            }
        } catch (Exception e) {
            e.printStackTrace();
        }
    }
}
